package app.netmorphgui.tabs;

import java.awt.BorderLayout;

import javax.swing.JLabel;

import netmorph.model.ConfigFile;

public class AllDendritesTab extends AbstractTab {
 	
	public AllDendritesTab(ConfigFile cfg) {
		
		setLayout(new BorderLayout());
		
		add(new JLabel("All dendrite common settings"), BorderLayout.NORTH);
		
		table = new JMapTable(cfg, cfg.getAllDendriteKeys());
		
		table.update();
		add(table, BorderLayout.CENTER);
	}

	@Override
	public void load(ConfigFile cfg) {
		table.setData(cfg, cfg.getAllDendriteKeys());
	}


	@Override
	public String getTitle() {
		return "All Dendrites";
	}
	

}
